package com.centronix.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the expense_type database table.
 * 
 */
@Entity
@Table(name="expense_type")
public class ExpenseType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int expenseTypeId;

	private String narrative;

	//bi-directional many-to-one association to Expense
	@OneToMany(mappedBy="expenseType")
	private List<Expense> expenses;

    public ExpenseType() {
    }

	public int getExpenseTypeId() {
		return this.expenseTypeId;
	}

	public void setExpenseTypeId(int expenseTypeId) {
		this.expenseTypeId = expenseTypeId;
	}

	public String getNarrative() {
		return this.narrative;
	}

	public void setNarrative(String narrative) {
		this.narrative = narrative;
	}

	public List<Expense> getExpenses() {
		return this.expenses;
	}

	public void setExpenses(List<Expense> expenses) {
		this.expenses = expenses;
	}
	
}